function createInitForm(){
	var form = new  dijit.form.Form({
	   id : "initUserForm"
	}).domNode;
	//D-2-2-1.Form Detail	
	var _userNamePwdMsg = createFormItemSummaryMsg(
		"The default secret-key is \"Your Name\" add \"Your Password\".Your input text can be any thing except LF if you can remenber it.");
	var _userName = creatShortValiInput({
	   id : "userName",
	   name : "userName",
	   required : true,
	   regExpId: "userName",
	   invalidMessage: "Your Name is required, and at least 6 words(For security)"
	}).domNode;
	//_userName.attr("regExpGen","userNameValidation");
  	//alert(_userName.attr("regExpGen"));

	var _userPassword = creatShortValiInput({
	   id : "userPassword",
	   name : "userPassword",
	   type:"password",
	   regExpId: "userPassword",
	   required : true ,
	   invalidMessage:"Your Password is required, and at least 6 words(For security)"
	}).domNode;

	var _userNicknameMsg = createFormItemSummaryMsg(
		"Your Name will be used as nickName if Your Nickname hasn't been defined");
	var _userNickname = creatShortValiInput({
	   id : "userNickname",
	   name : "userNickname"
	}).domNode;
	var _detailTable = createDefaultDetailTable({
		cells:[
			{"msg":_userNamePwdMsg},
			{"th":creatDomLabel("Your Name"),"td":[_userName], "required":true},
			{"th":creatDomLabel("Your Password"),"td":[_userPassword],"required":true},
			{"msg":_userNicknameMsg},
			{"th":creatDomLabel("Your Nickname"),"td":[_userNickname]}
		]
	})
	var _submit = new dijit.form.Button({
			onClick: initUser,
			label:" Create User "					
	}).domNode;
	var _buttonTable = creatDefaultButtonTable(_submit); 
	form.appendChild(_detailTable);
	form.appendChild(_buttonTable);
	//--D-2-2.Form End
	return form; 
}

function createLoginForm(){
	var form = new  dijit.form.Form({
	   id : "loginForm",
	   vali : false
	}).domNode;
	//D-2-2-1.Form Detail	
	var _userName = creatShortValiInput({
	   id : "name",
	   name : "name",
	   required : true ,
	   valiReg:"[^\n]+",
       invalidMessage: "Invalid required Your Name"
	}).domNode;
	var _userPassword = creatShortValiInput({
	   id : "password",
	   name : "password",
	   type:"password",
	   required : true ,
       invalidMessage: "Invalid required Your Password"
	}).domNode;
	var _detailTable = createDefaultDetailTable({
	   	row:2,
		cells:[
			{"th":creatDomLabel("Your Name"),"td":[_userName], "required":true},
			{"th":creatDomLabel("Your Password"),"td":[_userPassword], "required":true},
		]
	})
	var _submit = new dijit.form.Button({
		onClick: login,
		label:" Login "			
	}).domNode;
	var _buttonTable = creatDefaultButtonTable(_submit); 
	form.appendChild(_detailTable);
	form.appendChild(_buttonTable);
	//--D-2-2.Form End
	return form; 
}

function createAccountForm(){	
	var accountForm = new  dijit.form.Form({
	   id : "accountForm"
	}).domNode;
	//D-2-2-1.Form Detail	
	var _account_catalog = creatShortValiInput({
	   id : "account_catalog",
	   name : "account_catalog",
	   disabled : true 
	}).domNode;
	var _account_catalog_key = createDomInput({
		id:"account_catalog_key",
		name:"account_catalog_key",
		type:"hidden"
		});
	var _account_name = creatShortValiInput({
	   id : "account_name",
	   name : "account_name"
	}).domNode;
	var _account_key = createDomInput({
		id:"account_key",
		name:"account_key",
		type:"hidden"
		});
	var _account_id =creatShortValiInput({
	   id : "account_id",
	   name : "account_id",
	   required : true,
	   invalidMessage : "Invalid required Account Id"
	}).domNode;
	var _account_pwd =creatShortValiInput({
	   id : "account_pwd",
	   name : "account_pwd",
	   required : true,
	   invalidMessage : "Invalid required Account Password"
	}).domNode;
	var _account_url = creatLongValiInput({
	   id : "account_url",
	   name : "account_url",
	}).domNode;
	var _account_des = creatLongTextarea({
		id: "account_des",
		name: "account_des"
	});

   var _detailTable = createDefaultDetailTable({
	   	row:6,
		cells:[
			{"th":creatDomLabel("Account Catalog"),"td":[_account_catalog,_account_catalog_key]},
			{"th":creatDomLabel("Account Name"),"td":[_account_name,_account_key]},
			{"th":creatDomLabel("Account Id"),"td":[_account_id], "required":true},
			{"th":creatDomLabel("Account Password"),"td":[_account_pwd], "required":true},
			{"th":creatDomLabel("Account Url"),"td":[_account_url]},
			{"th":creatDomLabel("Account Describe"),"td":[_account_des]},
		]
	})
 	//D-2-2-2.Form Submit
	var _submit = new dijit.form.Button({
		id:"accountSubmit"			
	}).domNode;
	var _buttonTable = creatDefaultButtonTable(_submit); 
	accountForm.appendChild(_detailTable);
	accountForm.appendChild(_buttonTable);
	//--D-2-2.Form End
	return accountForm; 
}
function createCatalogForm(){	
	var catalogForm = new  dijit.form.Form({
	   id : "catalogForm"
	}).domNode;
	//D-2-2-1.Form Detail	
	var _parent_catalog = creatShortValiInput({
	   id : "parent_catalog",
	   name : "parent_catalog",
	   disabled : true 
	}).domNode;
	var _parent_catalog_key = createDomInput({
		id:"parent_catalog_key",
		name:"parent_catalog_key",
		type:"hidden"
		});
	var _catalog_name = creatShortValiInput({
	   id : "catalog_name",
	   name : "catalog_name",
	   required : true,
	   invalidMessage : "Invalid required Catalog Name"
	}).domNode;
	var _catalog_key = createDomInput({
		id:"catalog_key",
		name:"catalog_key",
		type:"hidden"
		});
	var _catalog_des = creatLongTextarea({
		id: "catalog_des",
		name: "catalog_des"
	});

   var _detailTable = createDefaultDetailTable({
	   	row:3,
		cells:[
			{"th":creatDomLabel("Parent Catalog"),"td":[_parent_catalog,_parent_catalog_key]},
			{"th":creatDomLabel("Catalog Name"),"td":[_catalog_name,_catalog_key], "required":true},
			{"th":creatDomLabel("Catalog Describe"),"td":[_catalog_des]},
		]
	})
 	//D-2-2-2.Form Submit
	var _submit = new dijit.form.Button({
		id:"catalogSubmit"			
	}).domNode;
	var _buttonTable = creatDefaultButtonTable(_submit); 
	catalogForm.appendChild(_detailTable);
	catalogForm.appendChild(_buttonTable);
	//--D-2-2.Form End
	return catalogForm; 
}